using System;
using System.Windows.Forms;
using CastleSample.UI.Core;

namespace CastleSample.WindowsClient
{
    internal static class Program
    {
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [STAThread]
        private static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            try
            {
                ApplicationContainer.Instance.Start();
                //Application.Run(ApplicationContainer.Instance.MainFrame.Form);
            }
            catch (ArgumentException ex)
            {
                // TODO: User ExceptionHandler to handle exceptions.
                DialogResult result = MessageBox.Show(ex.ToString());
            }
        }
    }
}